package com.huike.web.controller.report;


import com.huike.common.core.domain.AjaxResult;
import com.huike.report.domain.vo.SalesStatisticVo;
import com.huike.report.service.IReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

@RestController
@RequestMapping("/index")
public class IndexController {

@Autowired
public IReportService iReportService;



//商机转化龙虎榜
    @RequestMapping("/businessChangeStatistics")
    public AjaxResult businessChangeStatistics(@RequestParam Date beginCreateTime, @RequestParam Date endCreateTime){
        List<SalesStatisticVo> voList = iReportService.businessChangeStatistics(beginCreateTime,endCreateTime);
        return AjaxResult.success(voList);
    }
}
